﻿namespace ChivalryUnity.Fsm
{
    /// <summary>
    /// 状态转换
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class Transition<T> where T : Fsm<T>
    {
        /// <summary>
        /// 目标状态
        /// </summary>
        public State<T> TargetState { get; private set; }

        public Transition(State<T> targetState)
        {
            TargetState = targetState;
        }
    }
}